﻿#include "slice.h"
#include <stdlib.h>

void processSlice(bs_t *b, signal_nalu &sig_nalu)
//void processSlice(bs_t *b)
{
	// 0.先解析slice_header
	processSliceHeader(b, sig_nalu);
}



// 初始化slice结构体
slice_t *allocSlice(void)
{
	slice_t *slice = (slice_t *)calloc(1, sizeof(slice_t));
	if (slice == NULL) {
		fprintf(stderr, "%s\n", "Alloc PPS Error");
		exit(-1);
	}
	return slice;
}

// 释放slice
void freeSlice(slice_t *slice)
{
	free(slice);
}
